<template>
  <div class="typhoon-box"  style="margin-right:140px">
    <div class="title">
      <div>ASN详细信息</div><i class="el-icon-close" @click="closeInfo"></i>
    </div>
    <div style="padding:20px 0">


    <div class="second">
      <div class="left">
        <div class="rightdiv">AS号:{{ typhoonData.asn }}</div>
      </div>
      <div class="right">
        <div class="rightdiv">AS名称:{{ typhoonData.asnName }}</div>
      </div>
    </div>
    <div class="second">
      <div class="left">
        <div class="rightdiv">全球排名:{{ typhoonData.asnRank }}</div>
      </div>
      <div class="right">
        <div class="rightdiv">注册国家:{{ typhoonData.countryIso }}</div>
      </div>
    </div>
    <div>
      
    <div class="second">
      <div class="left">
        <div class="rightdiv">注册国家名称:{{ typhoonData.countryNameCn }}</div>
      </div>
      <div class="right">
        <div class="rightdiv">注册国家英文名:{{ typhoonData.countryName }}</div>
      </div>
      </div>
    </div>
    <div class="second">
      <div class="left">
        <div class="rightdiv">直接和间接客户前缀个数体数量:{{ typhoonData.announcingPfxNum }}</div>
      </div>
      <div class="right">
        <div class="rightdiv">直接和间接客户IP个数:{{ typhoonData.announcingIpNum }}</div>
      </div>
    </div>
    <div class="second">
      <div class="left">
        <div class="rightdiv">服务商AS个数:{{ typhoonData.providerNum}}</div>
      </div>
      <div class="right">
        <div class="rightdiv">客户AS个数:{{ typhoonData.customerNum }}</div>
      </div>
    </div>
    <div class="second">
      <div class="left">
        <div class="rightdiv">对等交换AS个数:{{ typhoonData.peerNum }}</div>
      </div>
      <div class="right">
        <div class="rightdiv">同源(兄弟)AS个数:{{ typhoonData.providerNum }}</div>
      </div>
    </div>
    <div class="second">
      <div class="left">
        <div class="rightdiv">分配的前缀个数:{{ typhoonData.conePfxNum}}</div>
      </div>
      <div class="right">
        <div class="rightdiv">分配的IP地址个数:{{ typhoonData.coneIpNum}}</div>
      </div>
    </div>
    <div class="second">
      <div class="left">
        <div class="rightdiv">直接和问接客户AS个数:{{ typhoonData.coneAsNum }}</div>
      </div>
      <div class="right">
        <div class="rightdiv">插入数据库时间:{{ typhoonData.insertTime &&typhoonData.insertTime.substring(0,10)}}</div>
      </div>
    </div>
    <div class="second">
      <div class="left">
        <div class="rightdiv">注册信息，地理经度:{{ typhoonData.longitude }}</div>
      </div>
      <div class="right">
        <div class="rightdiv">注册信息，地理纬度:{{ typhoonData.latitude }}</div>
      </div>
    </div>
  </div>
  </div>
</template>

<script>
export default {
  name: "TyphoonInfo",
  data() {
    return {};
  },
  props: {
    typhoonData: Object,
    closeInfo: Function
  },
  methods: {
     
  },
  mounted(){
    // console.log(`output->typhoonData`,props)
  },
};
</script>
<style lang="scss" scoped>
.typhoon-box {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  bottom: 200px;
  right: 200px;
  z-index: 1001;
  color: #fff;
  .title {
    display: flex;
    border-radius: 12px 12px 0 0;
    background: rgba(0, 0, 0, 0.4);
    height: 50px;
    line-height: 50px;
    color: #0fdaff;
    ::v-deep .el-icon-close {
      display: block;
      font-size: 30px;
    line-height: 50px;
margin-right: 5px;
      // position: absolute;
      // top: 3%;
      // right: 10px;
      cursor: pointer;
    }
    div {
      text-align: center;
      width: 100%;
      font-size: 18px;
      font-weight: bold;
      letter-spacing: 1.5px;
    }
  }
  .second{
    margin:5px 20px;
    display: flex;
    height: 40px;
    // line-height: 40px;
    font-size: 16px;
    font-weight: bold;
    color: #0fdaff;
    .left{
      width: 50%;
      .rightdiv{
        white-space: nowrap;
      }
    }
    .center{
      width: 50%;
      .rightdiv{
        white-space: nowrap;
      }
    }
  }
//   .rightdiv {
//   white-space: normal;
//   word-wrap: break-word; /* 为了更好的兼容性 */
//   overflow-wrap: break-word; /* 为了更好的兼容性 */
// }
}
</style>